import { flagOptions } from '@/constants'
import type { IllnessTime } from '@/enums'

export const formatIllnessTime = (value?: IllnessTime) => {
  const obj = flagOptions.find((item) => item.value === value)
  return obj?.label
}
export const formatConsultFlag = (flag?: 0 | 1) => {
  const obj = flagOptions.find((item) => item.value === flag)
  return obj?.label
}
